<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form id="formul">
<h:panelGrid>
        <f:facet name="header">
                <h:outputText value="Employee Details"/>
        </f:facet>
    <h:dataTable var="lolo" value="#{Mala.obiektki}" title="Dane">
          
            <h:column>
                <f:facet name="header" >
                    <h:outputText value="Id"/>
                </f:facet>
                <h:outputText value="#{lolo.id}"/>
            </h:column>
             <h:column>
                <f:facet name="header" >
                    <h:outputText value="Obiekt"/>
                </f:facet>
                <h:outputText value="#{lolo.dane}"/>
            </h:column>
        </h:dataTable>
</h:panelGrid>
        <h:panelGrid>
        <f:facet name="header">
            <h:outputText value="#{Duza.wykaz.values()}"/>
        </f:facet>
            <p:dataTable var="lolo" value="#{Duza.wykaz}" >
          
            <p:column>
                <f:facet name="header" >
                    <h:outputText value="Id"/>
                </f:facet>
                <h:outputText value="#{lolo.get}"/>
            </p:column>
             <p:column>
                <f:facet name="header" >
                    <h:outputText value="Obiekt"/>
                </f:facet>
                <h:outputText value="#{lolo.obiekt}"/>
            </p:column>
        </p:dataTable>
</h:panelGrid>
             <p:panel menuTitle="Wprowadzanie danych" header="Wprowadzanie danych">
            <p:panelGrid columns="2" >
                <h:outputLabel value="id"/>
                <h:outputLabel value="obiekt"/>
                
                <h:inputText value="#{Duza.pobrKlucz}"  accesskey="s">
                </h:inputText>
                <h:inputText value="#{Duza.pobrObiekt}">
                </h:inputText><!--
                ->                <h:selectOneMenu value="{Duza.pobrObiekt}" >
                    <f:selectItems value="{UzDAO.kluczUZjsf}"/>
                </h:selectOneMenu>
       -->
                <p:commandButton action="#{Duza.dodajNowyWpis()}" value="Post Message" update="formul"/>
            </p:panelGrid>
        </p:panel>
        </h:form>
    </h:body>
</html>

